import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.5

Window {
    visible: true
    width: 640
    height: 480
    title: qsTr("BlueLightFilterView")

    /* 放在最后 */
    BlueLightFilterView {
        id:eye
        anchors.fill: parent
    }

    Switch {
        anchors.centerIn: parent
        text: qsTr("eye protect")
        onClicked: {
            eye.flag = checked;
        }
        Component.onCompleted: {
            checked = eye.flag;
        }
    }
}
